]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
location: Rename _setAccuracy to setMaxAccuracyLevel
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sun, 16 Feb 2014 13:53:29 +0000 (13:53 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 17 Feb 2014 12:08:39 +0000 (12:08 +0000)
More descriptive name to avoid any confusion.

https://bugzilla.gnome.org/show_bug.cgi?id=723684

js/ui/status/location.js

index fb78b152cf56cefc5f752e64e40114a9bb08fe71..7a872bb16deebe96e3b62d073290e888ff5f68b4 100644 (file)
@@ -74,7 +74,7 @@ const Indicator = new Lang.Class({
             // If user set the max accuracy level, don't let geoclue override
             return;
 
-        this._setAccuracy (value, false);
+        this._setMaxAccuracyLevel (value, false);
     },
 
     // We (and geoclue) have currently no way to reliably identifying apps so
@@ -145,12 +145,12 @@ const Indicator = new Lang.Class({
 
     _onOnOffAction: function() {
         if (this._maxAccuracyLevel == 0)
-            this._setAccuracy (this._availableAccuracyLevel, true);
+            this._setMaxAccuracyLevel (this._availableAccuracyLevel, true);
         else
-            this._setAccuracy (0, true);
+            this._setMaxAccuracyLevel (0, true);
     },
 
-    _setAccuracy: function(maxAccuracyLevel, userSet) {
+    _setMaxAccuracyLevel: function(maxAccuracyLevel, userSet) {
         this._maxAccuracyLevel = maxAccuracyLevel;
 
         if (this._maxAccuracyLevel == 0) {